function Remote(boxee_action) {
    var hostvalue = "192.168.1.100";
    var portvalue = "8800";
    var url = "http://" + hostvalue + ":" + portvalue + "/xbmcCmds/xbmcHttp?command=" + boxee_action + "?nocache=" + new Date().getTime();
    var request = new XMLHttpRequest();
    request.open("GET", url);
    request.send(null);
}
function back_button() {
    Remote("SendKey(275)");
	}
function up_button() {
    Remote('SendKey(270)');
    }
function down_button() {
    Remote('SendKey(271)');
    }
function right_button() {
    Remote('SendKey(273)');
    }
function left_button() {
    Remote('SendKey(272)');
    }
function enter_button() {
    Remote('SendKey(256)');
    }
function volume_plus() {
    Remote('Action(88)');
}
function volume_minus() {
    Remote('Action(89)');
}
function play_button() {
    Remote('pause()')
}
